<?php
class AccessRight extends Zend_Db_Table_Abstract {
	const LOGIN = "login";
	const ADMIN = "admin";
	
	protected $_primary = "id";
	protected $_name = "access_right";
	
	/**
	 * Find access right by unque constraint.
	 * 
	 * @param $accessRight
	 */
	public function findByUnique($accessRight) {
		$where = $this->select()->where("access_right=?", $accessRight);
		return $this->fetchRow($where);
	}
}
?>